<template>
  <j-select-biz-component
    :value="value"

    name="资产"
    displayKey="username"

    :returnKeys="returnKeys"
    :listUrl="url.list"
    :columns="columns"
    queryParamText="名称"

    v-on="$listeners"
    v-bind="$attrs"
  />
</template>

<script>
import JSelectBizComponent from './JSelectBizComponent'

export default {
  name: 'JSelectAssets',
  components: {JSelectBizComponent},
  props: ['value'],
  data() {
    return {
      returnKeys: ['username', 'id'],
      url: {list: '/assets/asInfo/list'},
      columns: [
        {title: '类别', dataIndex: 'category_dictText', align: 'center', width: 120},
        {title: '资产名称', dataIndex: 'username', align: 'center', width: 120},
        {title: '描述', dataIndex: 'descInfo', align: 'center', width: 120}
      ]
    }
  }
}
</script>

<style lang="less" scoped></style>